import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [{
  path: '/',
  name: 'index',
  component: () => import('../views/index.vue')
},
{
  path:'/more',
  component:()=>import('../views/contents/more.vue')
},
{
  path:'/about',
  component:()=>import('../views/contents/about.vue')
}]
const router = new VueRouter({
  mode: 'history',  // 这里改为 history
  routes
})

export default router